package com.yyplatform.admin.platform.role.repository;

import java.util.List;
import java.util.Set;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.yyplatform.admin.platform.role.model.entity.SysRoleMenuEntity;

/**
 * Created on 2024-09-14
 */
public interface SysRoleMenuRepository extends JpaRepository<SysRoleMenuEntity, Long>,
        JpaSpecificationExecutor<SysRoleMenuEntity> {
    List<SysRoleMenuEntity> findByRoleIdIn(Set<Long> roleIdSet);

    List<SysRoleMenuEntity> findByMenuId(Long menuId);


    List<SysRoleMenuEntity> findByRoleId(Long id);


}
